package com.hejia.alauda.entity;

import javax.persistence.Column;

/**
 * 产品类型实体
 * 
 *
 *
 * Created by showone on 2014 上午11:18:11.
 */

public class ProductType extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/*
	 * 赎回模式：EXPIRE_REDEEM到期赎回，EXPIRE_KEEP到期续买
	 */
	public static enum RedeemModel {
		EXPIRE_REDEEM, EXPIRE_KEEP;
	}

    /*
       类别
     */
    public static enum Category{
        WEEK,MONTH,QUARTER
    }

	@Column
	private String name; // 名称

	@Column
	private String redeem; // 赎回模式

	@Column
	private String params; // 继买参数

	@Column
	private Long templateId;// 内容模版ID

	@Column
	private Long appTemplateId;// app内容模版ID

	@Column
	private Long insuranceTemplateId;// 安全保障内容模版ID

	@Column
	private String protocols;// 协议模版ID集合

    @Column
    private Category category;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRedeem() {
		return redeem;
	}

	public void setRedeem(String redeem) {
		this.redeem = redeem;
	}

	public String getParams() {
		return params;
	}

	public void setParams(String params) {
		this.params = params;
	}

	public Long getTemplateId() {
		return templateId;
	}

	public void setTemplateId(Long templateId) {
		this.templateId = templateId;
	}

	public Long getAppTemplateId() {
		return appTemplateId;
	}

	public void setAppTemplateId(Long appTemplateId) {
		this.appTemplateId = appTemplateId;
	}

	public Long getInsuranceTemplateId() {
		return insuranceTemplateId;
	}

	public void setInsuranceTemplateId(Long insuranceTemplateId) {
		this.insuranceTemplateId = insuranceTemplateId;
	}

	public String getProtocols() {
		return protocols;
	}

	public void setProtocols(String protocols) {
		this.protocols = protocols;
	}

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }
}
